﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Runtime.Serialization;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;


namespace PiscoSourDominio
{
    [DataContract]
    public class Cliente
    {
        [DataMember]
        [DisplayName("Cliente")]
        public int intCliente { get; set; }
        
        [DataMember]
        [DisplayName("Login")]
        public string vchLogin { get; set; }

        [DataMember]
        [DisplayName("Password")]
        public string vchPass{ get; set; }

        [DataMember]
        [DisplayName("Estado")]
        public string blnActivo { get; set; }
        
        [DataMember]
        [Required]
        [DisplayName("Documento")]
        public string vchDocumento { get; set; }
        
        [DataMember]
        [DisplayName("Nombre")]
        [Required]
        public string vchNombre { get; set; }
        
        [DataMember]
        [Required]
        [DisplayName("Apellido")]
        public string vchApellido { get; set; }
        
        [DataMember]
        [Required]
        [DisplayName("Dirección")]        
        public string vchDireccion { get; set; }
        
        [DataMember]
        [Required]
        [DisplayName("Distrito")]
        public string vchDistrito { get; set; }
        
        [DataMember]
        [DisplayName("Fecha Nacimiento")]
        [Required(ErrorMessage="Escriba una fecha de nacimiento valida")]
        public DateTime dtFecNacimiento { get; set; }

    }
}